package cn.gift.exception;

/**
 * @description: BusinessException
 * @date: 2023/4/25 14:27
 * @author: ZhaoLc
 * @version: 1.0
 */
public class BusinessException extends RuntimeException  {
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public BusinessException(String message, Integer code){
        super(message);
        this.code = code;
    }

    public BusinessException(String message){
        super(message);
    }
}
